In category theory, an end of a functor is a universal dinatural transformation from an object e of X to S.
More explicitly, this is a pair , where e is an object of X and
is a dinatural transformation from the constant functor whose value is e on every object and on every morphism, such that for every dinatural transformation
there exists a unique morphism
of X with
for every object a of C.
By abuse of language the object e is often called the end of the functor S (forgetting ) and is written
If X is complete, the end can be described as the equalizer in the diagram
where the first morphism is induced by and the second morphism is induced by .
The definition of the coend of a functor is the dual of the definition of an end.
Thus, a coend of S consists of a pair , where d is an object of X and
is a dinatural transformation, such that for every dinatural transformation
there exists a unique morphism
of X with
for every object a of C.
The coend d of the functor S is written
Dually, if X is cocomplete, then the coend can be described as the coequalizer in the diagram
Suppose we have functors then . In this case, the category of sets is complete, so we need only form the equalizer and in this case
the natural transformations from to . Intuitively, a natural transformation from to is a morphism from to for every in the category with compatibility conditions. Looking at the equalizer diagram defining the end makes the equivalence clear.
Let be a simplicial set. That is, is a functor . The Discrete topology gives a functor , where is the category of topological spaces. Moreover, there is a map which sends the object of to the standard simplex inside . Finally there is a functor which takes the product of two topological spaces. Define to be the composition of this product functor with . The coend of is the geometric realization of .